package sfeir.gwt.ergosoom.client.model;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@SuppressWarnings("serial")
@XStreamAlias("profile")
public class Profile implements Serializable {

    private Person person;
    private String alias;
    private long key;
    private String email;
    private String password;

    public Profile() {
    }

    public Profile(String firstname, String lastname, String mail) {
        this.person = new Person(firstname, lastname);
        this.alias = mail;
        this.email = mail;
    }

    public Profile(Person p, String alias) {
        this.person = p;
        this.alias = alias;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public long getKey() {
        return key;
    }

    public void setKey(long key) {
        this.key = key;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
